package com.lijinjiang.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName UrlPattern01
 * @Description urlPattern：精确匹配
 * @Author Li
 * @Date 2022/9/24 14:20
 * @ModifyDate 2022/9/24 14:20
 * @Version 1.0
 */
@WebServlet(urlPatterns = "/user/get")
public class UrlPattern01 extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("UrlPattern01 doGet...");
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("UrlPattern01 doPost...");
    }
}
